<!-- TOP Fixo -->
<div id="menu_position">
	<div class="navbar" id="menu">
		<div class="row">
			<a href = "http://localhost/AuraKingdom/index.php"><img src="http://localhost/AuraKingdom/assets/img/ak-logo.png" width="150" height="150" /></a>
		</div>		
		<!-- <div class="span2"><a class="brand" href="#">project name</a></div> -->
		<div class="navbar-inner">
	        	<div class="container">
	          		<div class="nav-collapse collapse">
	            		<ul class="nav" role="navigation">
	              			<li class="dropdown"><a id="drop" class="dropdown-toggle" data-toggle="dropdown" href="#">Comunidade</a>
	              				<ul class="dropdown-menu" role="menu" aria-labelledby="drop">
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/noticias">Notícias</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://aurakingdom.aeriagames.com/news/calendar">Eventos</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://www.guildanarquiabrasil.enjin.com/">Fórum</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/faq">FAQ</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://www.aeriagames.com/wiki/index.php?game=aurakingdom">Wiki</a></li>
	  							</ul>
	  						</li>
	              			<li class="dropdown"><a id="drop1" class="dropdown-toggle" data-toggle="dropdown" href="#">Explorando Azuria</a>
	              				<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/mundodeazuria">Mundo de Azuria</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/classes">Classes</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/eidolons">Eidolons</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/npcs">NPCs</a></li>
	  							</ul>
	  						</li>
	  						<li class="dropdown"><a id="drop2" class="dropdown-toggle" data-toggle="dropdown" href="#">O Jogo</a>
	              				<ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/caracteristica">Características</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/sistema">Requerimentos do Sistema</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/controles">Controles</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/ambiente">Ambiente do Jogo</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/iniciando">Iniciando</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/personagem">Informações de Personagem</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/envoypath">Envoy’s Path</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/quest">Quests e Gliding</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/fortificacao">Fortificações</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/refinamento">Refinamentos</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/secretstones">Secret Stones</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/mapa">Interface do Mapa</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/pvp">PvP</a></li>
	  							</ul>
	  						</li>
	  						<li class="dropdown"><a id="drop3" class="dropdown-toggle" data-toggle="dropdown" href="#">Media</a>
	              				<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
	    							<li><a tabindex="-1" href="http://localhost/AuraKingdom/index.php/video">Vídeos</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://aurakingdom.aeriagames.com/media/wallpaper">Wallpaper</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://aurakingdom.aeriagames.com/media/art/concept">Art</a></li>
	    							<li class="divider"></li>
	    							<li><a tabindex="-1" href="http://aurakingdom.aeriagames.com/media/fankit">Fankit</a></li>
	  							</ul>
	  						</li>
	  						<li><a id="drop3" href="http://aurakingdom.aeriagames.com/">Download</a>
	            		</ul>	
	          		</div><!--/.nav-collapse -->
	        	</div>
	      	</div>
	    </div><!--/.nav-collapse -->
	
	<!--/Página Central (Conteúdo) -->       
			<div  class="span10 hero-unit" id="conteudo">
				<div class="row-fluid">
				<a class="pull-right" href="http://www.aeriagames.com/playnow/aurakingdom/founderspacks?utm_source=aeriahome&utm_campaign=arkus&utm_medium=casual" target="_blank"><img src="http://localhost/AuraKingdom/assets/img/banner.jpg" id="borda_img" width="100" height="100" /></a>
	            	<div class="span10" id="noticias">
		             	 <div class="span2 pull-left">
		             	 	<h5>Notícias</h5>
		             	 </div>
		             	 <div class="span4 pull-right" id="menu_position">
		             	 	<h5 style="color:#000000;"><small><a href="">Inscreva-se</a> <a>|</a> <a href="http://localhost/AuraKingdom/index.php">Mais Notícias</a></small></h5>
	            		</div>
	            	</div>
	         <!-- COMEÇA -->   	<div class="span10" id="noticias_publicadas">
            		
	            		<?php
						
	            		if($next == false && $previous == false){
	            			
	            			for($i=0;$i < count($exibe);$i++){ ?>
		            			<a href ="http://localhost/AuraKingdom/index.php/noticia/<?php echo $exibe[$i]->idnoticias?>"><h3 id="assunto_noticia"><?php echo $exibe[$i]->assunto ?></h3></a>
		            			<h5><?php echo substr($exibe[$i]->noticia, 0, 100); ?> </h5><div class='divlink'><a  href ="http://localhost/AuraKingdom/index.php/noticia/<?php echo $exibe[$i]->idnoticias ?>" id="fonte_noticia" type="submit">Leia Mais>></a></div><hr id="mudando_hr">
		            	<?php }if(count($exibe) == 0){}else{
		            		$val = $exibe[count($exibe)-1]->idnoticias;
		            		$valor_previous = $exibe[0]->idnoticias;
		            		$pagina_principal = $val;
		            	}}else if($next == true){
	            				for($i=0;$i < count($exibe);$i++){?>
		            			<a href ="http://localhost/AuraKingdom/index.php/noticia/<?php echo $exibe[$i]->idnoticias?>"><h3 id="assunto_noticia"><?php echo $exibe[$i]->assunto ?></h3></a>
		            			<h5><?php echo substr($exibe[$i]->noticia, 0, 100); ?> </h5><div class='divlink'><a  href ="http://localhost/AuraKingdom/index.php/noticia/<?php echo $exibe[$i]->idnoticias ?>" id="fonte_noticia" type="submit">Leia Mais>></a></div><hr id="mudando_hr">
		            	<?php }if(count($exibe) == 0){}else{
		            		$val = $exibe[count($exibe)-1]->idnoticias;
		            		$valor_previous = $exibe[0]->idnoticias;
		            	}
		            	
	            			} else if ($previous == true){
	            				for($i=count($exibe)-1;$i >= 0;$i--){?>
		            			<a href ="http://localhost/AuraKingdom/index.php/noticia/<?php echo $exibe[$i]->idnoticias?>"><h3 id="assunto_noticia"><?php echo $exibe[$i]->assunto ?></h3></a>
		            			<h5><?php echo substr($exibe[$i]->noticia, 0, 100); ?> </h5><div class='divlink'><a  href ="http://localhost/AuraKingdom/index.php/noticia/<?php echo $exibe[$i]->idnoticias ?>" id="fonte_noticia" type="submit">Leia Mais>></a></div><hr id="mudando_hr">
	            				<?php  } if(count($exibe) == 0){}else{
	            						$valor_previous = $exibe[count($exibe)-1]->idnoticias;
	            						$val = $exibe[0]->idnoticias;} }?>
		            	
		            	<ul class="pager">
		            	
		            	<?php if ($quantidade < 5 && $next == false && $previous == false){ 
		            	}else if($quantidade < 5 && $next == true && $previous == false || $val == 1){
		            	?>
		  							<li class="previous">
		    							<a href="http://localhost/AuraKingdom/index.php/previous/<?php echo $valor_previous ?>/<?php echo $val ?>/<?php echo $pagina_principal ?>">&larr; Mais antigos</a>
		  							</li>
		  							<?php }
		  							else if($quantidade == 5 && $next == true && $previous == false || $quantidade == 5 && $next == false && $previous == true && $val != $pagina_principal){?>
		  							<li class="previous">
		    							<a href="http://localhost/AuraKingdom/index.php/previous/<?php echo $valor_previous ?>/<?php echo $val ?>/<?php echo $pagina_principal ?>">&larr; Mais antigos</a>
		  							</li>
		  							<li class="next">
		    							<a href="http://localhost/AuraKingdom/index.php/next/<?php echo $val ?>/<?php echo $pagina_principal ?>">Mais novos &rarr;</a>
		  							</li>
		  							<?php } else if($quantidade ==  5 && $next == false && $previous == false || $val == $pagina_principal){?>
		  							<li class="next">
		    							<a href="http://localhost/AuraKingdom/index.php/next/<?php echo $val ?>/<?php echo $pagina_principal ?>">Mais novos &rarr;</a>
		  							</li>
		  							<?php } ?>
		  							
								</ul>
	            	</div>  	 
	    		</div><!-- TERMINA -->
	    		
	     		
	            <hr>
	       		<div id="footer_rodape">
	            	<center><footer><p>&copy; 2013 - AuraKingdom PT - Bonei - Tradução: Bonei, Zoa e XBmz.</p></footer></center>
	            </div>
	
	 	</div><!-- /hero-unit -->
	 	
	 	
 </div>
